package com.huanghuai.retail.controller;


import com.huanghuai.retail.common.R;
import com.huanghuai.retail.entity.SailPlace;
import com.huanghuai.retail.service.DeviceService;
import com.huanghuai.retail.service.ISailPlaceService;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zjh
 * @since 2023-05-23
 */
@Controller
@RequestMapping("/sail-place")
public class SailPlaceController {

    @Resource
    private ISailPlaceService sailPlaceService;

    @GetMapping
    @ResponseBody
    public List<SailPlace> getSailPlaceList(){

        List<SailPlace> list = sailPlaceService.list();

        return list;
    }
}
